package com.example.jikeprofiledemo

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class FPagerAdapter(var fm: FragmentManager, var behavior: Int, var fragments: List<Fragment>,var titles:List<String>) :
    FragmentPagerAdapter(fm, behavior) {

    override fun getItem(position: Int) = fragments[position]
    override fun getCount() = fragments.size

    override fun getPageTitle(position: Int) = titles[position]

}